package com.lza.phone.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 *
 * 需要将这个类交给spring管理 @Component 在phoneApplication 的@SpringBootApplication
 */
@Component
@Data
@ConfigurationProperties(prefix = "alioss")  //在application.properties上,自动获取
public class OssEntity {
    private  String endpoint;
    private String accessKeyId ;
    private String accessKeySecret ;
    private String bucketName;

}
